<template>
  <div>
    <el-tabs v-model="activeName">
      <el-tab-pane label="已转换脚本" name="first">
        <finish-convert-result v-if="activeName === 'first'" :convert-task-pk-id="convertTaskPkId" :task-name="taskName" />
      </el-tab-pane>
      <el-tab-pane label="未转换脚本" name="second">
        <todo-convert-result v-if="activeName === 'second'" :convert-task-pk-id="convertTaskPkId" :task-name="taskName" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
import todoConvertResult from './todo-convert-result'
import finishConvertResult from './finish-convert-result'

export default {
  name: 'ConvertResult',
  components: { finishConvertResult, todoConvertResult },
  props: {
    convertTaskPkId: {
      required: true,
      type: String
    },
    taskName: {
      required: true,
      type: String
    }
  },
  data() {
    return {
      activeName: 'first'
    }
  }
}
</script>
